package com.lplb.api.admin.model.dto;

import com.lplb.common.core.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表DTO 请求入参
 * </p>
 *
 * @author ws
 * @date 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AdminMenuDTO对象", description="菜单表")
public class AdminMenuDTO extends BaseDTO{

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "菜单父id (自关联, 没有父级=0)")
    private String pid;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单路由")
    private String url;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort;

    @ApiModelProperty(value = "菜单级别(目录级别(1，系统=顶部菜单||一级目录, 2、菜单  3、页面)")
    private Integer root;

    @ApiModelProperty(value = "是否禁用( 0-正常 (默认)  1-禁用)")
    private Integer state;

}
